import requests

if __name__ == '__main__':
    url = "http://127.0.0.1:8080"

    # 指定参数
    user = {"username":"laoma"}
    pic = {"pic":open("123.jpg",mode="rb")}

    resp = requests.post(url+"/stest/user/upload.action")